﻿CREATE TABLE [dbo].[tblUserRight] (
    [RightID]   INT          IDENTITY (1, 1) NOT NULL,
    [RightName] NVARCHAR (50) NOT NULL,
    PRIMARY KEY CLUSTERED ([RightID] ASC) WITH (FILLFACTOR = 90, ALLOW_PAGE_LOCKS = ON, ALLOW_ROW_LOCKS = ON, PAD_INDEX = OFF, IGNORE_DUP_KEY = OFF, STATISTICS_NORECOMPUTE = OFF)
);
GO
GO;
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = 'Defines a single right which can be assigned to users or groups', 
	@level0type = N'SCHEMA', @level0name = N'dbo',
	@level1type = N'TABLE', @level1name = N'tblUserRight';
GO;
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = 'The primary key', 
	@level0type = N'SCHEMA', @level0name = N'dbo',
	@level1type = N'TABLE', @level1name = N'tblUserRight',
	@level2type = N'COLUMN', @level2name = N'RightID';
GO;
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = 'The name of the right', 
	@level0type = N'SCHEMA', @level0name = N'dbo',
	@level1type = N'TABLE', @level1name = N'tblUserRight',
	@level2type = N'COLUMN', @level2name = N'RightName';

